Optimize Blog and App Navigation with Tabs API Logic#112
Optimize Blog and App Navigation with Tabs API Logic#112OsakaLOOP wants to merge 2 commits intobefore-refractorfrom
Conversation
- Main app `/blog` links now consistently open in a new tab (`target="_blank"`). - Astro blog component links back to the main app injected with client-side script to close the current tab using `window.close()` if `window.opener` exists and isn't closed, providing a smooth return-to-app experience. - If `window.opener` is missing (e.g., accessed via direct URL), the "Back to App" link naturally navigates the current tab back to the root application. Co-authored-by: OsakaLOOP <68284076+OsakaLOOP@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
…w.open - Replaced `rel="noopener noreferrer"` with `rel="opener"` on `target="_blank"` links pointing to `/blog` in `VersionBadge.jsx` and `ErrorBoundary.tsx`. This allows the blog tab to maintain a reference to `window.opener` so the "Back to App" script can successfully close the tab and return focus to the app. - Reverted the programmatic `window.open` modification in `AppLayout.tsx` which caused popup blockers to trigger on initial redirect loads. Co-authored-by: OsakaLOOP <68284076+OsakaLOOP@users.noreply.github.com>
Updates the main application and blog to use separate tabs for navigation to prevent reloading and performance degradation of the main app when accessing the Astro blog. Adds a robust script in the blog to close its tab and return focus to the main app when returning, falling back to a normal redirect if the tab was opened directly.
PR created automatically by Jules for task 184234513697217721 started by @OsakaLOOP